package my.mall.common.pojo

class PageInfo(val pageNum: Long, val pageSize: Long) {
    var totalRecord: Long? = null
        set(value) {
            if (value == null) {
                return
            }
            field = value
            totalPage = (value - 1) / pageSize + 1
        }
    var totalPage: Long? = null
}
